package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品分类信息对象 product
 * 
 * @author ruoyi
 * @date 2023-12-06
 */
public class Product extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 商品id */
    private Long productId;

    /** 商品名 */
    @Excel(name = "商品名")
    private String productName;

    /** 分类id */
    @Excel(name = "分类id")
    private Long categoryId;

    /** 商品描述 */
    @Excel(name = "商品描述")
    private String productTitle;

    /** 商品详细描述 */
    @Excel(name = "商品详细描述")
    private String productIntro;

    /** 图片路径 */
    @Excel(name = "图片路径")
    private String productPicture;

    /** 原价格 */
    @Excel(name = "原价格")
    private Long productPrice;

    /** 折后价格 */
    @Excel(name = "折后价格")
    private Long productSellingPrice;

    /** 剩余数目 */
    @Excel(name = "剩余数目")
    private Long productNum;

    /** 已售出 */
    @Excel(name = "已售出")
    private Long productSales;

    public void setProductId(Long productId) 
    {
        this.productId = productId;
    }

    public Long getProductId() 
    {
        return productId;
    }
    public void setProductName(String productName) 
    {
        this.productName = productName;
    }

    public String getProductName() 
    {
        return productName;
    }
    public void setCategoryId(Long categoryId) 
    {
        this.categoryId = categoryId;
    }

    public Long getCategoryId() 
    {
        return categoryId;
    }
    public void setProductTitle(String productTitle) 
    {
        this.productTitle = productTitle;
    }

    public String getProductTitle() 
    {
        return productTitle;
    }
    public void setProductIntro(String productIntro) 
    {
        this.productIntro = productIntro;
    }

    public String getProductIntro() 
    {
        return productIntro;
    }
    public void setProductPicture(String productPicture) 
    {
        this.productPicture = productPicture;
    }

    public String getProductPicture() 
    {
        return productPicture;
    }
    public void setProductPrice(Long productPrice) 
    {
        this.productPrice = productPrice;
    }

    public Long getProductPrice() 
    {
        return productPrice;
    }
    public void setProductSellingPrice(Long productSellingPrice) 
    {
        this.productSellingPrice = productSellingPrice;
    }

    public Long getProductSellingPrice() 
    {
        return productSellingPrice;
    }
    public void setProductNum(Long productNum) 
    {
        this.productNum = productNum;
    }

    public Long getProductNum() 
    {
        return productNum;
    }
    public void setProductSales(Long productSales) 
    {
        this.productSales = productSales;
    }

    public Long getProductSales() 
    {
        return productSales;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("productId", getProductId())
            .append("productName", getProductName())
            .append("categoryId", getCategoryId())
            .append("productTitle", getProductTitle())
            .append("productIntro", getProductIntro())
            .append("productPicture", getProductPicture())
            .append("productPrice", getProductPrice())
            .append("productSellingPrice", getProductSellingPrice())
            .append("productNum", getProductNum())
            .append("productSales", getProductSales())
            .toString();
    }
}
